<include file="public:header" />
<include file="public:left" />
<div style="float:left;width:100%">
    <form  action="{:U('User/editor')}" method="post" id="form1" class="registerform"  >
        <div class="form-group width50">
            <label for="exampleInputEmail1">用户名：<font  color="red">*</font></label>
            <input type="text" class="form-control"  placeholder="用户名" name="username" datatype="*"  nullmsg="用户名不可为空！" value="{$list.username}" >
        </div>
        <div class="form-group width50">
            <label for="exampleInputEmail1">密码：<font  color="red">*</font></label>
            <input type="password" class="form-control"  placeholder="密码" name="password"  >
        </div>
        <div class="form-group width50">
            <label for="exampleInputEmail1">确认密码：<font  color="red">*</font></label>
            <input type="password" class="form-control"  placeholder="确认密码" name="twopassword"   >
        </div>
        <div class="form-group width50">
            <label for="exampleInputEmail1">电话号码：</label>
            <input type="text" class="form-control"  placeholder="电话号码1~11位" name="mobile" datatype="m"  ignore="ignore"  errormsg="手机号码格式不对！" value="{$list.mobile}">
        </div>
        <div class="form-group width50">
            <label for="exampleInputEmail1">真实姓名：</label>
            <input type="text" class="form-control"  placeholder="真实姓名" name="name" value="{$list.name}">
        </div>
        <div class="form-group width50">
            <label for="exampleInputEmail1">权限：</label>
            <select class="form-control width50 " name="rank" id="class_relation">
                <volist name=":Common\Common\ConstantUtil::poserList()" id="val" key="k" >
                    <option value="{$k}" <if condition="$list['rank'] eq $k" >selected</if> >{$val}</option>
                </volist>
            </select>
        </div>
        <input type="hidden" name="id" value="{$list.id}">
        <button type="submit" class="btn btn-primary">保存</button>
    </form>
</div>
<include file="public:footer" />